﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace MyChart
{
    /// <summary>
    /// 坐标系控件数据绑定后事件参数
    /// </summary>
    public class CoordinateDataBindedEventArgs : EventArgs
    {
        #region 字段

        private DataView _dataSource;
        private MultiSeriesManager _itemManager;

        #endregion

        #region 属性

        /// <summary>
        /// 获取控件数据源
        /// </summary>
        public DataView DataSource
        {
            get { return _dataSource; }
        }

        /// <summary>
        /// 获取控件数据管理器
        /// </summary>
        public MultiSeriesManager ItemManager
        {
            get { return _itemManager; }
        }

        #endregion

        #region 构造器

        /// <summary>
        /// 初始化 CoordinateDataBindedEventArgs 类
        /// </summary>
        /// <param name="dataSource">绑定的数据源</param>
        /// <param name="itemManager">所包含的控件数据管理器</param>
        public CoordinateDataBindedEventArgs(DataView dataSource, MultiSeriesManager itemManager)
        {
            _dataSource = dataSource;
            _itemManager = itemManager;
        }

        #endregion
    }
}
